<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>OA协同办公系统</title>
		<link href="css/table.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript">
		function loadFile(val){
		var fileId=$("#fileArray").val();
		if(fileId!=''&&fileId!='null'){
			var param={"fileArray":fileId};
			$.post("getFileList.action",param,function(data) {
				var list=data.fileList;
				for(var i=0;i<list.length;i++){
					$("#"+val).prepend("<tr><td><a href=\"downLoadFile.action?fileId="+list[i].id+"\">"+list[i].name+"</a>&nbsp;</tr>");
		        }
			},"json");
		}
		var status=$("#status").val();
		var radio=$("input[type=\"radio\"]");
		for(var i=0;i<radio.length;i++){
			if(radio[i]==status){
				radio[i].checked=true;
				break;
			}
		}
	}
	
	window.onload=function(){
		loadFile('filetable');
	}
		</script>		
	</head>

	<body>
			<input type="hidden" name="tempName" id="tempName" >
			<input type="hidden" id="fileArray" name="info.fileId" value="${info.fileId}">
			<input type="hidden" name="info.id" value="${info.id }" >
			<span id="info_2"></span>
			<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
				<tbody>
					<tr>
						<td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
						<td style="background: url('image/wsoa_window_002.gif');">
							<table border="0" cellpadding="0" cellspacing="0">
								<tbody>
									<tr>
										<td align="center" style="background: url('image/wsoa_window_002.gif');" width="10">
											<img src="image/center_19.gif">
										</td>
										<td align="center" style="background: url('image/wsoa_window_002.gif');"></td>
										<td></td>
									</tr>
								</tbody>
							</table>
						</td>
						<td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
					</tr>
					<tr>
						<td style="background: url('image/wsoa_window_010.gif');" width="1">
							&nbsp;
						</td>
						<td>
							<div id="bottom">
								<table style="width: 100%;" class="table5">
									<tbody>
										<tr>
											<td class="table5 bgcolor5" align="right" width="80px">
												栏目
											</td>
											<td colspan="3" class="table5" align="left" width="200px">
											${info.columnName }
											</td>
										</tr>
										<tr>
											<td class="table5 bgcolor5" align="right" >
												主 题
											</td>
											<td class="table5" colspan="3" align="left">
												${info.title}
											</td>
										</tr>
										<tr>
											<td class="table5 bgcolor5" align="right">
												内容
											</td>
											<td class="table5" colspan="3" align="left">
												${content}
											</td>
										</tr>
										<tr>
											<td class="table5 bgcolor5" align="right">
												附件
											</td>
											<td class="table5" colspan="3" align="left">
												<table id="filetable" style="border: #cddee9 double 2px; width: 605px">

												</table>
											</td>
										</tr>
									</tbody>
								</table>
								<table style="width: 100%;" align="center" border="0">
									<tbody>
										<tr>
											<td align="center">
												<span id="errorId"></span>
											</td>
										</tr>
										<tr>
											<td align="center">
												<input class="button_04" type="button" onclick="window.close()" value="返回" />
										</tr>
									</tbody>
								</table>
							</div>
							
						</td>
						<td style="background: url('image/wsoa_window_006.gif');"
							width="1">
							&nbsp;
						</td>
					</tr>
					<tr>
						<td height="1" width="1">
							<img src="image/wsoa_window_009.gif" height="16" width="14">
						</td>
						<td style="background: url('image/wsoa_window_008.gif');"
							height="1"></td>
						<td height="1" width="1">
							<img src="image/wsoa_window_007.gif" height="16" width="12">
						</td>
					</tr>
				</tbody>
			</table>
	</body>
</html>